var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var userSchema = new Schema({
    username:String,//用户名
    password:String,//密码
    favorite:[{
        type:mongoose.Schema.Types.ObjectId,
        ref:'articles'
    }],
    isAdmin:{
        type:Boolean,
        default:false
    },//是否管理员
});
module.exports = userSchema